package com.ss.android.topic;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.bytedance.retrofit2.Callback;
import com.ss.android.article.common.b.a;
import com.ss.android.wenda.IWendaApi;
import com.ss.android.wenda.answer.detail2.NewAnswerDetailActivity;
import com.ss.android.wenda.answer.list.AnswerListActivity;
import com.ss.android.wenda.answer.list.FoldAnswerListActivity;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class bb implements a {
    private com.ss.android.topic.f.a a;

    public bb() {

    }

    public final Intent a(Context context) {
        return new Intent(context, AnswerListActivity.class);
    }

    public final Intent a(Context arg3, Bundle arg4) {
        Intent v0 = new Intent(arg3, NewAnswerDetailActivity.class);
        if(arg4 != null) {
            v0.putExtras(arg4);
        }

        return v0;
    }

    public final List a(String arg3) {
        String v0_1;
        if(this.a != null) {
            com.ss.android.topic.f.a v0 = this.a;
            if(v0.a != null) {
                v0_1 = v0.a.toString();
            }
            else {
                v0_1 = "";
            }
        }
        else {
            v0_1 = "";
        }

        if(v0_1 == null) {
            v0_1 = "";
        }

        if(this.a == null || !v0_1.equals(arg3)) {
            this.a = new com.ss.android.topic.f.a(arg3);
        }

        return this.a.a();
    }

    public final void a(int arg5, String arg6, String arg7, Callback arg8) {
        HashMap v1 = new HashMap();
        ((Map)v1).put("op_type", String.valueOf(arg5));
        ((Map)v1).put("ansid", arg6);
        ((Map)v1).put("ansid", arg6);
        if(!android.support.design.a.isTextEmpty(arg7)) {
            ((Map)v1).put("api_param", arg7);
        }

        Object v0 = com.ss.android.topic.aa.a("http://ib.snssdk.com", IWendaApi.class);
        if(v0 != null) {
            ((IWendaApi)v0).postFormUrl(20480, "/wenda/v1/opanswer/comment/", ((Map)v1)).enqueue(arg8);
        }
    }

    public final void a(Context arg1, com.ss.android.article.common.d.a arg2) {
        com.ss.android.topic.aa.a();
    }

    public final void a(String arg5, String arg6, Callback arg7) {
        HashMap v1 = new HashMap();
        ((Map)v1).put("ansid", arg5);
        if(!android.support.design.a.isTextEmpty(arg6)) {
            ((Map)v1).put("api_param", arg6);
        }

        Object v0 = com.ss.android.topic.aa.a("http://ib.snssdk.com", IWendaApi.class);
        if(v0 != null) {
            ((IWendaApi)v0).postFormUrl(20480, "/wenda/v1/commit/deleteanswer/", ((Map)v1)).enqueue(arg7);
        }
    }

    public final void a(String arg1, String arg2, String arg3, Callback arg4) {
        android.support.design.a.a(arg1, arg2, arg3, arg4);
    }

    public final Intent b(Context arg3) {
        return new Intent(arg3, FoldAnswerListActivity.class);
    }

    public final void b(String arg1, String arg2, String arg3, Callback arg4) {
        android.support.design.a.b(arg1, arg2, arg3, arg4);
    }
}

